package com.sjyy.common.dict;

/**
 * 订单状态,按实际流转状态排序
 */
public enum OrderStatusEnum {
	ORDER_STATUS_YQX("已取消", "已取消", -1),
	ORDER_STATUS_YXD("已下单", "已下单", 1),
	ORDER_STATUS_YQR("已确认", "已确认", 2),
	ORDER_STATUS_CGFJ("正在采购分拣", "已确认", 7),
	ORDER_STATUS_FJWC("分拣完成", "商品出库", 6),
	ORDER_STATUS_DDSH("等待收货", "等待收货", 3),
	ORDER_STATUS_YWC("已完成", "已完成", 4),
	ORDER_STATUS_YHK("已回款", "已回款", 5),
	;

	private String manageName;
	private String appName;
	private int key;

	private OrderStatusEnum(String manageName, String appName, int key) {
		this.manageName = manageName;
		this.appName = appName;
		this.key = key;
	}

	public static String getManagerOrderStatusStr(int key) {
		for (OrderStatusEnum a : OrderStatusEnum.values()) {
			if (a.getKey() == key) {
				return a.manageName;
			}
		}
		return "未知";
	}

	public static String getAppOrderStatusStr(int key) {
		for (OrderStatusEnum a : OrderStatusEnum.values()) {
			if (a.getKey() == key) {
				return a.appName;
			}
		}
		return "未知";
	}

	public String getManageName() {
		return manageName;
	}

	public void setManageName(String manageName) {
		this.manageName = manageName;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

}
